package reusingclass;

public class Exercise19 {

	private final String s;

	public Exercise19() {
		s = "hello";
	}

	public Exercise19(String s) {
		this.s = s;
	}
	
	public static void main(String[] args) {
		Exercise19 ex = new Exercise19();
		System.out.println(ex.s);
//		ex.s = "bonjour"; // can't be executed
		Exercise19 ex1 = new Exercise19("world");
		System.out.println(ex1.s);
//		ex1.s = "bonjour"; // can't be executed
	}
}
